import { axios } from '@/utils/request'

export function shopRefundOutStockAdd(obj) {  //增门店退货出库单
    return axios({
        url: '/yjsh/outstock/shopRefundOutStockAdd',
        method: 'post',
        data: obj
    })
}




export function shopRefundOutStockDetail(query) {  //门店退货出库单详情
    return axios({
        url: '/yjsh/outstock/shopRefundOutStockDetail',
        method: 'get',
        params: query
    })
}


export function refundOutStockDetailList(query) {  //门店出库列表
    return axios({
        url: '/yjsh/outstock/refundOutStockDetailList',
        method: 'get',
        params: query
    })
}


export function shopRefundOutStockConfirm(obj) {  //出库完成操作
    return axios({
        url: '/yjsh/outstock/shopRefundOutStockConfirm',
        method: 'post',
        data: obj
    })
}




export function shopRefundOutStockCancel(obj) {  //作废
    return axios({
        url: '/yjsh/outstock/shopRefundOutStockCancel',
        method: 'post',
        data: obj
    })
}








export function shopgoodscategory(obj) {  //商品类目
    return axios({
        url: '/yjsh/shopgoodscategory/tree',
        method: 'post',
        data: obj
    })
}

export function platformgoodsinfo(query) {  //平台商品
    return axios({
        url: '/yjsh/platformgoodsinfo/page',
        method: 'get',
        params: query
    })
}


export function shopGoodsInfoList(query) {  //根据门店商品类目获取平台商品
    return axios({
        url: '/yjsh/purchaseinfo/shopGoodsInfoList',
        method: 'get',
        params: query
    })
}
export function platformgoodscategory(obj) {  //平台商品类目
    return axios({
      url: '/yjsh/platformgoodscategory/tree',
      method: 'get',
      params: obj
    })
  }

export function rejectedreason(inOutType) {  //通过inOutType查询 00表示出库01表示入库
    return axios({
        url: '/yjsh/rejectedreason/' + inOutType,
        method: 'get',
    })
}